package com.dylearn.serve.impl.rabbitmq.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;

//@Component
public class MsgListenerDirect2 {

    //如果有两个listenner 那么mq 就会轮流的让他们处理
    //绑定 消息队列
    @RabbitListener(queues = "direct_queue")
    public void receive(String id ){
        System.out.println("处理消息队列 -- direct_queue tow id =" + id);
    }
}
